let isDone: boolean = false

let count: number = 10

let person: string = 'Lionel'

// let sym = Symbol('hello')

// console.log(typeof sym);


// const sym:symbol = Symbol()
// let obj = {
// [sym]: 'Hello'
// }

// console.log(obj[sym]);


// let list:number[] = [1,2,3]

// list.push(6)

// 数组
let list: Array<number> = [1, 2, 3]



// 元组声明Tuple

let tupleType: any = ['Hello', true]


// 枚举类型
enum Direction {
  NORTH = "NORTH",
  SOUTH = "SOUTH",
  EAST = "EAST",
  WEST = "WEST"
}


//常量枚举 
const enum test {
  NORTH,
  WEST,
  EAST,
  SOUTH
}


// 异构枚举 

enum yigou {
  A, B, C = 'C', D = 'D',
  E = 8, F
}


let dir: Direction = Direction.NORTH

console.log(dir);
